﻿     date = new Date();
	  year = date.getFullYear();
	  month = date.getMonth()+1;
	  if (month<10)
	  {
	  	month="0"+month;
	  }
	  end_day = date.getDate();
	  if (end_day<10)
	  {
	  	end_day="0"+end_day;
	  }
	  if (!"")
	  {
	  	begin = year+"-"+month+"-01";
	  }else
	  {
	  	begin = "";
	  }
	  if(!"")
	  {
	  	end = year+"-"+month+"-"+end_day;
	  }else
	  {
	  	end = "";
	  }
  	document.getElementById ("date").value=end;
    Calendar.setup({
        inputField     :    "date",
        ifFormat       :    "%Y-%m-%d",
        showsTime      :    false,
        timeFormat     :    "24"
    });